<!DOCTYPE html>
<html lang="zh-CN">

<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>重置密码 - {:conf('site_name')}</title>
    <meta name="keywords" content="重置密码,找回密码,{:conf('site_name')}">
    <meta name="description" content="重置密码 - {:conf('site_name')}">
    <meta name="author" content="www.qqss.net">
    <!-- Favicon -->
    <link rel="icon" href="{:conf('site_favicon')}" type="image/x-icon">
    <!-- CSS -->
    <link href="/static/default/css/tailwind/tailwind.min.css?v={$static_version}" rel="stylesheet">
    <link href="/static/css/fontawesome/css/all.min.css?v={$static_version}" rel="stylesheet">
    
    <style>
        /* 自定义样式 */
        .auth-container {
            min-height: 100vh;
            background: linear-gradient(135deg, #667eea 0%, #764ba2 100%);
        }
        
        .error-container {
            background: rgba(255, 255, 255, 0.95);
            backdrop-filter: blur(10px);
            border-radius: 1rem;
            box-shadow: 0 20px 25px -5px rgba(0, 0, 0, 0.1), 0 10px 10px -5px rgba(0, 0, 0, 0.04);
        }

        .error-icon {
            animation: pulse 2s infinite;
        }

        @keyframes pulse {
            0%, 100% { transform: scale(1); }
            50% { transform: scale(1.05); }
        }

        .btn-shine {
            position: relative;
            overflow: hidden;
        }
        
        .btn-shine::before {
            content: '';
            position: absolute;
            top: 0;
            left: -100%;
            width: 100%;
            height: 100%;
            background: linear-gradient(90deg, transparent, rgba(255,255,255,0.4), transparent);
            transform: skewX(-25deg);
            transition: left 0.6s ease;
        }
        
        .btn-shine:hover::before {
            left: 100%;
        }
    </style>

    <!-- 插件头部hook -->
    {cms:hooks name="template.head" /}
</head>

<body class="bg-gray-50">
    <!-- 插件头部hook -->
    {cms:hooks name="common.header.before" /}

    <div class="auth-container flex items-center justify-center min-h-screen p-6">
        <div class="error-container w-full max-w-md p-8 text-center">
            <!-- 错误图标 -->
            <div class="error-icon mb-6">
                <i class="fas fa-exclamation-triangle text-6xl text-red-500"></i>
            </div>

            <!-- 错误标题 -->
            <h1 class="text-2xl font-bold text-gray-800 mb-4">
                重置链接无效
            </h1>

            <!-- 错误信息 -->
            <p class="text-gray-600 mb-8 leading-relaxed">
                {$message|default='重置链接已过期或无效，请重新申请密码重置。'}
            </p>

            <!-- 操作按钮 -->
            <div class="space-y-4">
                <a href="{:_url_('auth.forgot')}"
                   class="btn-shine relative w-full inline-flex items-center justify-center py-3 px-4 border border-transparent text-sm font-medium rounded-lg text-white bg-blue-600 hover:bg-blue-700 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors duration-300 overflow-hidden">
                    <span class="relative z-10 flex items-center">
                        <i class="fas fa-redo mr-2"></i>
                        重新申请重置
                    </span>
                </a>

                <a href="{:_url_('auth.login')}"
                   class="w-full inline-flex items-center justify-center py-3 px-4 border border-gray-300 text-sm font-medium rounded-lg text-gray-700 bg-white hover:bg-gray-50 focus:outline-none focus:ring-2 focus:ring-offset-2 focus:ring-blue-500 transition-colors duration-300">
                    <i class="fas fa-sign-in-alt mr-2"></i>
                    返回登录
                </a>
            </div>

            <!-- 帮助信息 -->
            <div class="mt-8 pt-6 border-t border-gray-200">
                <p class="text-xs text-gray-500">
                    如果您持续遇到问题，请联系客服获取帮助
                </p>
            </div>
        </div>
    </div>

    <!-- 引入脚本组件 -->
    {include file="default/components/scripts" /}

    <!-- 插件底部hook -->
    {cms:hooks name="common.footer" /}
</body>

</html>
